package com.shuxinxin.test.mapper;

import com.shuxinxin.test.pojo.Book;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface BookMapper {


    //    动态查找书籍
    public List<Book> selectBook(Book book);

    //    查找所有书籍

    public List<Map<String,Object>> selectAll();


    //    更新图书
    public int updateBook(String book_writer ,String book_name , String book_type,Double book_price,Integer book_id);

    //   增加书籍
    public int insertBook(Book book);
}
